package com.engineering.elink.recruitdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.engineering.elink.domain.recruit.DictCategory;
import com.engineering.elink.vo.recruit.DictCategoryVo;

public interface DictCategoryMapper {

    int insert(DictCategory record);

    int insertSelective(DictCategory record);
    
    @Select(" select dict_id as dictId, dict_code as dictCode, dict_name as dictName, sequence from dict_category where dict_code=#{dictCode} order by sequence DESC ")
    List<DictCategoryVo> selectAllByDictCode(String dictCode);

    List<DictCategory> selectBatchByGuildIds(String[] guildIds);
    
    DictCategory selectByNatureId(@Param("dictId")Integer dictId);
    
    DictCategory selectBySequence(@Param("dictCode")String dictCode,@Param("sequence")Integer sequence);
    
}